#pragma once

namespace LSH
{
namespace Graphics
{

class IndexBuffer
{
public:
    IndexBuffer(void);
    ~IndexBuffer(void);
public:
    void    create(UINT byteSize);
    void*   lock(UINT byteSize=0);
    void    unlock();
    void    map(void* pIndexs, UINT byteSize);
public:
    void    setAsIndicesSource();
protected:
    UINT    _size;

    IDirect3DIndexBuffer9* _pD3dIB;
};

} // Graphics
} // LSH
